﻿{include file="public/header"}
<title>收入明细</title>
</head>
<style>
    .layui-layer-page .layui-layer-content {
        overflow: visible !important;
    }

</style>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 合伙人管理
    <span class="c-gray en">&gt;</span>收入明细列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">

    <div class="mt-20">
        <div class="title-border">
            <div class="flex1">日期</div>
            <div class="flex1">用户</div>
            <div class="flex1">等级</div>
            <div class="flex1">数量</div>
            <div class="flex1">提成比例</div>
            <div class="flex1">收益</div>
            <div class="flex1">提现金额<span style="color: red;font-size: 10px">点击查看详情</span></div>
            <div class="flex1">剩余金额</div>
            <div class="flex1">海报分享数</div>
        </div>
        {volist name='list' id='vo'}
        <div class="content-border">
            <div class="flex1">{$vo.uptime}</div>
            <div class="flex1">{$vo.personal_ids}</div>
            <div class="flex1">{$vo.grade}</div>
            <div class="flex1">{$vo.number}</div>
            <div class="flex1">{$vo.ti}%</div>
            <div class="flex1">{$vo.profit}</div>
            <div class="flex1"><a class="ch-button ch-blue info" data-id="{$vo.personal_id}" href="javascript:;" >{$vo.ss}</a></div>
            <div class="flex1">{$vo.sheng}</div>
            <div class="flex1">{$vo.fen}</div>
        </div>
        {/volist}
        
        <div class="pages" style="float: right">{$list->render()}</div>

    </div>
</div>

{include file="public/footer"}
<script type="text/javascript">
    function selecttime(flag) {
        if (flag == 1) {
            var endTime = $("#countTimeend").val();
            if (endTime != "") {
                WdatePicker({dateFmt: 'yyyy-MM-dd', maxDate: endTime})
            } else {
                WdatePicker({dateFmt: 'yyyy-MM-dd'})
            }
        } else {
            var startTime = $("#countTimestart").val();
            if (startTime != "") {
                WdatePicker({dateFmt: 'yyyy-MM-dd', minDate: startTime})
            } else {
                WdatePicker({dateFmt: 'yyyy-MM-dd'})
            }
        }
    }
    /**
     * 详情
     */
    $('.info').click(function () {
        var id = $(this).attr('data-id');
        var src = "{:Url('index/Income/info')}";
        var index=layer.open({
            type: 2,
            area: ['900px', '800px'],
            fix: false,
            shade: 0.4,
            title: '详情',
            content: src + '?personal_id=' + id
        });

    });


</script>
</body>
</html>